package com.cloudshop.service.mongo.dao;

import com.cloudshop.service.mongo.entity.LogEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * LogEntity.
 *
 * @author 宫新程
 * @since 2019/3/30 1:36
 */
public interface LogEntityMongoRepository extends MongoRepository<LogEntity, String> {

  Page<LogEntity> findByRequestId(String requestId, Pageable pageable);

  Page<LogEntity> findByHttpStatus(Integer httpStatus, Pageable pageable);

  Page<LogEntity> findByHttpStatusAndRequestId(
      Integer httpStatus, String requestId, Pageable pageable);
}
